package com.kerrykidz.parreserve.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.kerrykidz.parreserve.dao.model.ParReserveRoomEntity;

@Repository
public interface ParReserveRoomEntityMapper {
	int insertParReserveRoom(ParReserveRoomEntity parReserveRoom); 
	int updateParReserveRoom(ParReserveRoomEntity parReserveRoom); 
	public  List<ParReserveRoomEntity>  findParReserveRoomByparId(ParReserveRoomEntity parReserveRoom);
	int deleteParRoom(ParReserveRoomEntity parReserveRoom);
	int deleteParRoomByParId(ParReserveRoomEntity parReserveRoom); 
	
	/**
	 *  查询 预付后或超时未预付（2小时）列表     后面做自动解锁
		 * @Description   
		 * List<ParReserveRoomEntity>
		 * @author chenyu
		 * 2014年10月17日 下午4:19:35
	 */
	List<ParReserveRoomEntity> parResRoomCancelLocalFlag();
	
	/**
	 * 根据房间id，预约id 查询 房间 是否 预约过 
	 * @Description chenyu 2014年11月17日 下午3:53:43
	 */
	public Integer findParReserveRoom(@Param("fkParresId") String fkParresId, @Param("fkRoomId") String fkRoomId);
	
}